cd "F:\Dropbox\School\Research Projects\Populism\Articles\Populist Psychology\Submission files\JOP 2020\Final\Replication files"

use "study 2 prepped.dta", clear

drop if female == .
recode age (18/30=1) (31/40=2) (41/50=3) (51/60=4) (61/70=5) (71/80=6)

collapse (percent) status, by(age female)

rename status percent_survey

merge 1:1 age female using "spain census data prepped.dta"

*view data to see figures from table
